package classifier;


public class ClassifierFactory {
	public static Classifier getClassifier(String type) {
		Classifier classifier;
		if(type.compareTo("random") == 0) {
			classifier = new RandomClassifier();
		} else if(type.compareTo("gaussian") == 0) {
			classifier = new GaussianClassifier();
		} else if(type.compareTo("mix_gaussian") == 0) {
			classifier = new MixtureOfGaussianClassifier();
		} else {
			throw new RuntimeException();
		}
		return classifier;
	}
}
